﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BO;
using System.Data;

namespace ProjectQuaDep.Control.News
{
    public partial class MenuNewsLeft : System.Web.UI.UserControl
    {
        public int ZoneID = lib.ZoneID;//zone con
        public int ParentID = lib.ParentID;//zone to
        protected void Page_Load(object sender, EventArgs e)
        {
            int NewsID = lib.NewsID;
            if (NewsID > 0)
            { 
                DataTable dt = BO.News.NewsBO.GetDetailNewsBO(NewsID.ToString());
                if (dt.Rows.Count > 0)
                {
                    ZoneID = int.Parse(dt.Rows[0][Const.tbNews.ZoneIdOther].ToString().TrimEnd(','));
                    ParentID = int.Parse(dt.Rows[0][Const.tbNews.ZoneId].ToString());
                }
            }
        }
    }
}